package com.ruoyi.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_drugs
 *
 * @author ruoyi
 * @date 2020-05-10
 */
public class TDrugs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 全称 */
    @Excel(name = "全称")
    private String fullName;

    /** 简称 */
    @Excel(name = "简称")
    private String shorterName;

    /** 商品缩略图 */
    @Excel(name = "商品缩略图")
    private String pimage;

    /** 规格 */
    @Excel(name = "规格")
    private String specs;

    /** 适应症 */
    @Excel(name = "适应症")
    private String adapt;

    /** 特点 */
    @Excel(name = "特点")
    private String trait;

    /** 药品价格 */
    @Excel(name = "药品价格 ")
    private BigDecimal price;

    /** 产品信息 */
    @Excel(name = "产品信息")
    private String productInfo;

    private String content;

    /** 状态：0有效，1无效 */
    @Excel(name = "状态：0有效，1无效")
    private String flag;

    /** 是否上架（1：是 2：否） */
    @Excel(name = "是否上架（1：是 2：否）")
    private String isShelves;

    /** 是否自营（1：是 2：否） */
    @Excel(name = "是否自营（1：是 2：否）")
    private String isSelf;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateUser;
    //数量
    private Integer number;

    //数据权限
    private String dataScope;

    private String drugType;

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public String getFullName()
    {
        return fullName;
    }
    public void setShorterName(String shorterName)
    {
        this.shorterName = shorterName;
    }

    public String getShorterName()
    {
        return shorterName;
    }
    public void setPimage(String pimage)
    {
        this.pimage = pimage;
    }

    public String getPimage()
    {
        return pimage;
    }
    public void setSpecs(String specs)
    {
        this.specs = specs;
    }

    public String getSpecs()
    {
        return specs;
    }
    public void setAdapt(String adapt)
    {
        this.adapt = adapt;
    }

    public String getAdapt()
    {
        return adapt;
    }
    public void setTrait(String trait)
    {
        this.trait = trait;
    }

    public String getTrait()
    {
        return trait;
    }

    public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public void setProductInfo(String productInfo)
    {
        this.productInfo = productInfo;
    }

    public String getProductInfo()
    {
        return productInfo;
    }

    public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setFlag(String flag)
    {
        this.flag = flag;
    }

    public String getFlag()
    {
        return flag;
    }

    public String getIsShelves() {
		return isShelves;
	}

	public void setIsShelves(String isShelves) {
		this.isShelves = isShelves;
	}

	public String getIsSelf() {
		return isSelf;
	}

	public void setIsSelf(String isSelf) {
		this.isSelf = isSelf;
	}

	public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public String getCreateUser()
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser)
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser()
    {
        return updateUser;
    }


    public String getDataScope() {
		return dataScope;
	}

	public void setDataScope(String dataScope) {
		this.dataScope = dataScope;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fullName", getFullName())
            .append("shorterName", getShorterName())
            .append("pimage", getPimage())
            .append("specs", getSpecs())
            .append("adapt", getAdapt())
            .append("trait", getTrait())
            .append("productInfo", getProductInfo())
            .append("flag", getFlag())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
